def make_avg():
    data = list()
    def addnumber(value):
        data.append(value)
        total = sum(data)
        return total/len(data)
    return addnumber

add = make_avg()
print(add(100))
print(add(200))